#include <array>
#include <iostream>
#include <vector>

using namespace std;

int main() {
  vector<array<int, 3>> v3(2);
  v3[0] = array<int, 3>{1, 2, 3};
  v3[1] = array<int, 3>{4, 5, 6};

  int *a = &v3[0][0];
  for (int i = 0; i < 6; ++i) {
    cout << *(a + i) << endl;
  }
  return 0;
}